<?php

class ajoutMedia extends Controller {


	function index()
	{
		$this->load->database();
		$this->load->library('form_validation');
		$this->load->helper('form');
		$this->load->helper('url');
		
		$data="";
			
		$query = $this->db->query("SELECT ID_Oeuvre, nom FROM oeuvre where utilisateur='".$_COOKIE['login']."'");

		foreach ($query->result_array() as $row) $data["oeuvres"][]=array($row['ID_Oeuvre'],$row['nom']);
	
		$this->load->view('ajoutMedia',$data);
	}
	
	
}
?>
